package cn.luischen.dto;

import org.powermock.reflect.Whitebox;
import org.mockito.Mock;
import static org.junit.Assert.fail;
import org.junit.runner.RunWith;
import java.util.HashMap;
import java.util.ArrayList;
import org.mockito.MockitoAnnotations;
import com.alibaba.fastjson.JSONArray;
import org.junit.After;
import org.powermock.core.classloader.annotations.PrepareForTest;
import java.util.Map;
import static org.junit.Assert.assertEquals;
import org.powermock.modules.junit4.PowerMockRunner;
import org.powermock.api.mockito.PowerMockito;
import org.powermock.core.classloader.annotations.PowerMockIgnore;
import java.lang.reflect.Method;
import org.junit.rules.ExpectedException;
import org.mockito.InjectMocks;
import org.junit.Test;
import static org.junit.Assert.*;
import com.unitspirit.runtime.*;
import org.mockito.Mockito;
import java.util.List;
import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.TypeReference;
import org.junit.Rule;
import static org.junit.Assert.assertNotNull;
import static org.mockito.ArgumentMatchers.*;
import static org.mockito.Mockito.*;
import static org.junit.Assert.assertTrue;
import com.alibaba.fastjson.parser.ParserConfig;

/**
* The class <code>StatisticsDtoTest</code> contains tests for the class <code>{@link StatisticsDto}</code>.
* Copyright (c) 2020
* 
* @generatedBy UnitSpirit at 2021-09-07 17:51:42
* @version 1.0.20210903
*/

@PowerMockIgnore({ "javax.management.*" })
public class StatisticsDto_setComments_WGTest {

	@Rule
	public ExpectedException unitspirit_thrown = ExpectedException.none();

	/**
	* 测试方法初始化.
	* 
	* @throws Exception 
	*         if the initialization fails for some reason 
	*  
	* @generatedBy UnitSpirit at 2021-09-07 17:51:42
	*/
	@org.junit.Before
	public void setUp() throws Exception {
		try {
			ParserConfig.getGlobalInstance().setAutoTypeSupport(true);
		} catch (Exception ex) {
			ex.printStackTrace();
		}
	}

	/**
	* @date 2021-09-07 17:51:43
	* @see cn.luischen.dto.StatisticsDto#setComments
	* @category auto generate by UnitSpirit  
	* @author UnitSpirit   
	*/
	@Test
	public void test_setComments_0113_190013_782_1_00() throws Throwable {

		cn.luischen.dto.StatisticsDto unitspirit_fixture = new cn.luischen.dto.StatisticsDto();
		Long Long_p_0 = 0L;
		//成员变量设置
		Whitebox.setInternalState(unitspirit_fixture, "attachs", 0L);
		Whitebox.setInternalState(unitspirit_fixture, "comments", 0L);
		Whitebox.setInternalState(unitspirit_fixture, "articles", 0L);

		//返回值定义 
		//该函数无返回值 

		unitspirit_fixture.setComments(Long_p_0);
		assertTrue(true);
	}

	/**
	* @date 2021-09-07 17:51:43
	* @see cn.luischen.dto.StatisticsDto#setComments
	* @category auto generate by UnitSpirit  
	* @author UnitSpirit   
	*/
	@Test
	public void test_setComments_0113_190013_782_7_00() throws Throwable {

		cn.luischen.dto.StatisticsDto unitspirit_fixture = new cn.luischen.dto.StatisticsDto();
		Long Long_p_0 = 0L;
		//成员变量设置
		Whitebox.setInternalState(unitspirit_fixture, "attachs", 0L);
		Whitebox.setInternalState(unitspirit_fixture, "comments", 0L);
		Whitebox.setInternalState(unitspirit_fixture, "articles", 0L);

		//返回值定义 
		//该函数无返回值 

		unitspirit_fixture.setComments(Long_p_0);
		assertTrue(true);
	}

	/**
	* @date 2021-09-07 17:51:43
	* @see cn.luischen.dto.StatisticsDto#setComments
	* @category auto generate by UnitSpirit  
	* @author UnitSpirit   
	*/
	@Test
	public void test_setComments_20210722_100105_570_1_00() throws Throwable {

		cn.luischen.dto.StatisticsDto unitspirit_fixture = new cn.luischen.dto.StatisticsDto();
		Long Long_p_0 = 0L;
		//成员变量设置
		Whitebox.setInternalState(unitspirit_fixture, "attachs", 0L);
		Whitebox.setInternalState(unitspirit_fixture, "comments", 0L);
		Whitebox.setInternalState(unitspirit_fixture, "articles", 4L);

		//返回值定义 
		//该函数无返回值 

		unitspirit_fixture.setComments(Long_p_0);
		assertTrue(true);
	}
}
